import service from "@/request/index";
import type { LoginData, LoginResult } from "./model";

export class AuthApi {
  static wxLogin(data: LoginData): ApiPromise<LoginResult> {
    return service.request({
      url: `/login/wechatLogin`,
      method: "GET",
      data,
    });
  }
}
